<html>  
<head>  
<body>  
<script type="text/javascript" src="/admin/js/websocket.js"></script>
<script type="text/javascript">
var wsuri = "ws://www.eyuanonline.com:3001/websocket/send?a=123";
window.onload = function(){
    websocket.onmessage = function(e){
        window.document.getElementById('massage').innerHTML += e.data + "<br>";
    }
    websocket.open(wsuri)
};
</script>  
<h1> Websocket Echo Test</h1>  
<form>  
<div id="massage"></div>
<p>  
Message: <input id = "message" type = "text" value ="hello dumx">  
</p>  
</form>  
<button onclick="websocket.send('hello world');">Send Msg</button>  
</body>  
</head>  
</html>